package com.soyorin.goods.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.math.BigDecimal;
import java.time.Instant;

@Data
@TableName("goods")
public class Goods {
    @TableId(type = IdType.AUTO)
    private Long id;
    @TableField("create_time")
    private Instant createTime;
    @TableField("update_time")
    private Instant updateTime;
    @TableField("rela_shop_id")
    private Long relaShopId;
    @TableField("rela_goods_category_id")
    private Long relaGoodsCategoryId;
    @TableField("name")
    private String name;
    @TableField("description")
    private String description;
    @TableField("price")
    private Double price;
    @TableField("image_address")
    private String imageAddress;
    @TableField(value = "`is_on`")
    private Boolean isOn;
    @TableField("monthly_sale_count")
    private Integer monthlySaleCount;
    @TableField("tag")
    private String tag;
    @TableField("inner_index")
    private Integer innerIndex;
}
